package com.xbongbong.pro.workorder.pojo.dto;/*/*/

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.workorder.pojo.WorkOrderTemplateDetailFlowPojo;
import com.xbongbong.pro.workorder.pojo.WorkOrderTemplateDetailInfoPojo;
import com.xbongbong.pro.workorder.pojo.WorkOrderTemplatePowerPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 *
 * @author 魏荣杰
 * @date 2019/3/7 19:26
 * @since v1.0
 * @version v1.0
 */
@Setter
@Getter
@ToString
public class WorkOrderTemplateSaveDTO extends BaseDTO{
    private static final long serialVersionUID = 4590276798195703128L;
    /**
     * 模板id
     */
    @NotNull(message = "{dto.msg.workOrderTemplateSave.id.NotNull}")
    private Long id;
    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.workOrderTemplateSave.appId.NotNull}")
    private Long appId;
    /**
     * 工单信息
     */
    @NotNull(message = "{dto.msg.workOrderTemplateSave.info.NotNull}")
    @Valid
    private WorkOrderTemplateDetailInfoPojo info;
    /**
     * 工单流程
     */
    @NotNull(message = "{dto.msg.workOrderTemplateSave.workflow.NotNull}")
    @Valid
    private WorkOrderTemplateDetailFlowPojo workflow;
    /**
     * 工单权限设置
     */
    @NotNull(message = "{dto.msg.workOrderTemplateSave.power.NotNull}")
    private WorkOrderTemplatePowerPojo power;
}
